package com.zh.springcloud.feign;

import com.zh.springcloud.common.Result;
import com.zh.springcloud.interceptor.FeginHeaderInterceptor;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.lang.invoke.MethodType;

/**
 * @Description:
 * @ClassName PaymentFeign
 * @date: 2022.03.28 10:09
 * @Author: zhanghang
 */
@Component
@FeignClient(value = "cloud-payment-service", configuration = FeginHeaderInterceptor.class)
public interface PaymentFeign {

	/**
	 * description: 获取订单
	 * date: 2022年-03月-28日 10:10
	 * author: zhanghang
	 * 
	 * @param id
	 * @return com.zh.springcloud.common.Result<?>
	 */ 
	@RequestMapping(value = "/payment/{id}", method = RequestMethod.GET)
	public Result<?> getPaymentById(@PathVariable(value = "id") Long id);
}
